package com.example.boxueguapplication.model;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

import java.util.List;
@XStreamAlias("infos")
public class ChapterTitle {
    @XStreamImplicit(itemFieldName = "course")
    public List<Course> xiTiCourse;

    @XStreamAlias("course")
    public static class Course {
        @XStreamAsAttribute
        public Long id;
        public String imgtitle;
        public String title;
        public String intro;

        @Override
        public String toString() {
            return "course{" +
                    "imgtitle='" + imgtitle + '\'' +
                    ", title='" + title + '\'' +
                    ", intro='" + intro + '\'' +
                    '}';
        }
    }
}
